home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1998 January / PC Answers Issue 49 Cover CD January 1998.iso / Apps / Director / DATA.Z / Streaming Shockwave.dir / Standard Elements_2_Initialize Standard Movie Handlers.ls < prev    next >
Encoding:
Text File  |  1997-05-10  |  739 b   |  42 lines

  1. on openWindow
  2.   if the windowType of the activeWindow <> 4 then
  3.     set the windowType of the activeWindow to 4
  4.     set the title of the activeWindow to the movieName
  5.   end if
  6. end
  7.  
  8. on closeWindow
  9.   if count(the windowList) < 2 then
  10.     clearGlobals()
  11.   end if
  12.   forget(the activeWindow)
  13. end
  14.  
  15. on activateWindow
  16.   continue()
  17. end
  18.  
  19. on deactivateWindow
  20.   pause()
  21. end
  22.  
  23. on initStandardElements
  24.   global gMaxChannels, gStreamingShockwaveButtonPropertyList
  25.   set gMaxChannels to 48
  26.   if not voidp(gStreamingShockwaveButtonPropertyList) then
  27.     nothing()
  28.   else
  29.     BuildButtonPropertyList([])
  30.     set gStreamingShockwaveButtonPropertyList to the result
  31.   end if
  32. end
  33.  
  34. on stopMovie
  35.   sound stop 1
  36.   sound stop 2
  37. end
  38.  
  39. on idle
  40.   doRollOverCheck()
  41. end
  42.